package day2;

import java.util.Scanner;
/*
2-2
 */
public class TestDemo1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        String[] array = s.split(" ");
        for (int i = array.length-1; i >= 0 ; i--) {
            if(i == 0) {
                System.out.print(array[i]);
            }else {
                System.out.print(array[i]+" ");
            }
        }
    }
}
